package com.cyy.common.pojo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
public class MenuOptionDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -5363073709977192367L;
    @JsonProperty("value")
    private Integer id;

    @JsonIgnore
    private Integer parentId;

    @JsonProperty("label")
    private String name;

    private List<MenuOptionDto> children;
}
